package com.shenmazong.controller;

import com.shenmazong.service.TbSellerService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.SellerCheckVo;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.UUID;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2022/1/13 13:51
 */

@RestController
@Slf4j
@RequestMapping(value = "/seller")
@Api(tags = "商家管理接口")
public class TbSellerController {

    @Autowired
    TbSellerService tbSellerService;

    @PostMapping(value = "/sellerCheck")
    public ResultResponse sellerCheck(@RequestBody SellerCheckVo sellerCheckVo) {
        return tbSellerService.sellerCheck(sellerCheckVo);
    }

    @PostMapping(value = "/sellerLock")
    public ResultResponse sellerLock(@RequestBody SellerCheckVo sellerCheckVo) {
        return tbSellerService.sellerLock(sellerCheckVo);
    }
}
